


for ((  i = 100 ;  i <= 10;  i++  ))
do
  echo "regist app$i:"
  curl -d "name=app${i}&domain=www.app${i}.com&source=/mnt/xengine/www.app${i}.com&target=vhost/www.app${i}.com" http://localhost:8000/rest/app_manager/regist
  echo ""
  echo "publish app$i:"
  curl -d "name=app${i}"  http://localhost:8000/rest/instance_manager/publish


done

curl -d "name=app1&domain=www.app1.com&source=/mnt/xengine/www.app1.com&target=vhost/www.app1.com" http://localhost:8000/rest/app_manager/regist

curl -d "name=app1" http://localhost:8000/rest/instance_manager/publish


curl -d "name=app10&domain=www.app10.com&source=/mnt/xengine/www.app10.com&target=vhost/www.app10.com" http://localhost:8000/rest/app_manager/regist



curl -d "name=app10" http://localhost:8000/rest/instance_manager/publish
#curl -d "name=app3"  http://localhost:8000/rest/instance_manager/publish

#curl -d "name=4731"  http://localhost:8000/rest/instance_manager/publish

#curl -d "name=app3"  http://localhost:8000/rest/instance_manager/stop_instances
curl -d "name=app100&domain=www.app100.com&source=/mnt/xengine/www.app100.com&target=vhost/www.app100.com" http://localhost:8000/rest/app_manager/regist
curl -d "name=app100" http://localhost:8000/rest/instance_manager/publish
curl -d "name=app101&domain=www.app101.com&source=/mnt/xengine/www.app101.com&target=vhost/www.app101.com" http://localhost:8000/rest/app_manager/regist
curl -d "name=app101" http://localhost:8000/rest/instance_manager/publish
